<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>修改资料</title>
    <link rel="stylesheet" type="text/css" href="../../static/css/vipcenter.css">
    <script src="../../static/js/jquery-1.8.3.min.js"></script>
    <script src="../../static/js/city.js/cityJson.js"></script>
    <script src="../../static/js/city.js/citySet.js"></script>
    <script src="../../static/js/city.js/Popt.js"></script>
    <script src="../../static/js/user_center.js"></script>
</head>

<body>
<!--个人中心首页 -->
<div class="thetoubu">
    <!--头部-->
    <div class="thetoubu1">
        <b>
            {% if data.user_info.avatar_url %}
                <img src="{{ data.user_info.avatar_url }}"/>
            {% else %}
                <img src="../../static/favicon.ico"/>
            {% endif %}
        </b>
        <em>{{ data.user_info.nick_name }}</em>
        <em>欢迎来到会员中心</em>
        <a href="/user/goods_addr">地址管理</a>
        <a href="/user/base_user">修改资料</a>
        <h5>账户安全</h5>
        {% if data.user_info.status==1 and data.user_info.mobile_status ==1 %}
            <strong>高</strong>
            <span>
        	<p style=" width:100%"></p>
        </span>
        {% elif data.user_info.status==1 or data.user_info.mobile_status ==1 %}
            <strong>中</strong>
            <span>
        	<p style=" width:50%"></p>
        </span>
        {% else %}
            <strong>低</strong>
            <span>
        	<p style=" width:27%"></p>
        </span>
        {% endif %}
        <a href="#">安全等级提升</a>
        {% if data.user_info.mobile_status==1 %}
            <em style=" padding-right:2px">手机</em>
            <a href="#" style=" padding-left:2px; float:left; display:block; color:#f00" title="点击绑定">已绑定</a>
        {% else %}
            <em style=" padding-right:2px">手机</em>
            <a href="/user/binding" style=" padding-left:2px; float:left; display:block; color:#f00"
               title="点击绑定">未绑定</a>
        {% endif %}
        <div>
            <a href="/">返回商城</a>
        </div>

    </div>
    <!--详细列表-->
    <div class="xiangxilbnm">
        <!--left-->
        <div class="liefyu">
            <h2>交易管理</h2>
            <div class="conb">
                <a href="/user/my_shopcar">我的购物车</a>
                <a href="#">实物交易订单</a>
                <a href="#">虚拟兑换订单</a>
                <a href="/user/collection">我的收藏</a>
                <a href="#">交易评价/晒单</a>
                <a href="#">账户余额</a>
                <a href="#">我的积分</a>
                <a href="#">我的代金卷</a>
            </div>
            <h2>客户服务</h2>
            <div class="conb">
                <a href="#">退款及退货</a>
                <a href="#">交易投诉</a>
                <a href="#">商品咨询</a>
                <a href="#">违规举报</a>
                <a href="#">平台客服</a>
                <a href="#">商家入驻</a>
            </div>
            <h2>资料管理</h2>
            <div class="conb">
                <a href="/user/base_user">账户信息</a>
                <a href="/account">账户安全</a>
                <a href="/user/goods_addr">收货地址</a>
                <a href="/user/pic_info">我的头像</a>
                <a href="/passport/new_password">修改密码</a>
                <a href="/user/zfmm">支付密码</a>
                <a href="/user/binding">手机绑定</a>
                <a href="/user/e_mail">邮箱绑定</a>
            </div>
        </div>
        <script type="text/javascript">
            $(function () {//第一步都得写这个
                $(".liefyu h2").click(function () {//获取title，并且让他执行下面的函数
                    $(this)/*点哪个就是哪个*/.next(".conb")/*哪个标题下面的con*/.slideToggle()/*打开/折叠*/.siblings/*锁定同级元素*/(".con").slideUp()/*同级元素折叠起来*/
                })
            })
        </script>
        <!--right-->
        <div class="zuirifip">
            <!--基本信息-->
            <div class="basedexinxi">
                <a href="#">基本信息</a>
            </div>
            <!--基本信息结束-->
            <!--修改基本信息开始-->
            <div class="baseopxg">
                <form class="base_info_form">
                    <!--第一部分-->
                    <div class="tirstbf">
                        <em style="margin-left: 120px">用户名：</em>
                        <div style="float:left; box-shadow:none; height:28px; font-size:16px; text-indent:6px; margin-top:68px"
                             class="username">{% if data.user_info %}{{ data.user_info.user_id }}{% else %}暂无{% endif %}
                        </div>

                    </div>
                    <!--第二部分-->
                    <div class="thetwobf">
                        <em>真实姓名：</em>
                        <div style="float:left; font-size:12px; text-indent:6px;margin-top:8px"
                             class="shuru realname">{% if data.user_info and data.user_info.real_name != None %}
                            {{ data.user_info.real_name }}{% else %}暂无{% endif %}
                        </div>
                    </div>
                    <div class="thetwobf">
                        <em>昵称：</em>
                        <div style="float:left; font-size:12px; text-indent:6px;margin-top:8px"
                             class="shuru nickname">
                            {% if data.user_info %}{{ data.user_info.nick_name }}{% else %}暂无{% endif %}
                        </div>
                    </div>
                    <div class="thetwobf">
                        <em>性别：</em>
                        <div style="float:left; font-size:12px; text-indent:6px;margin-top:8px"
                             class="shuru gender">{% if data.user_info and data.user_info.gender == 'MAN' %}
                            男{% elif data.user_info and data.user_info.gender == 'WOMAN' %}女{% else %}未知{% endif %}
                        </div>
                    </div>
                    <div class="thetwobf">
                        <em>电话：</em>
                        <div style="float:left; font-size:12px; text-indent:6px;margin-top:8px"
                             class="shuru mobile">
                            {% if data.user_info %}{{ data.user_info.mobile }}{% else %}暂无{% endif %}
                        </div>
                    </div>
                    <div class="thetwobf">
                        <em>邮箱：</em>
                        <div style="float:left; font-size:12px; text-indent:6px;margin-top:8px"
                             class="shuru email">{% if data.user_info and data.user_info.e_mail != None %}
                            {{ data.user_info.e_mail }}{% else %}暂无{% endif %}
                        </div>
                    </div>
                    <div class="thetwobf">
                        <em>出生日期：</em>
                        <div style="float:left; font-size:12px; text-indent:6px;margin-top:8px"
                             class="shuru birthday">{% if data.user_info and data.user_info.birthday != None %}
                            {{ data.user_info.birthday }}{% else %}未知{% endif %}
                        </div>
                    </div>
                    <div class="thetwobf">
                        <em>居住地址：</em>
                        <div style="float:left; font-size:12px; text-indent:6px;margin-top:8px"
                             class="shuru" id="city">{% if data.user_info and data.user_info.area_addr != None %}
                            {{ data.user_info.area_addr }}{% else %}未知{% endif %}
                        </div>
                    </div>
                    <div class="thetwobf">
                        <input type="button" value="编 辑 " class="input_sub bianji"
                               style=" display:block; padding-left:20px; padding-right:20px;
                                line-height:40px;float:left; font-size:14px; color:#FFF;
                                 margin-left:213px">
                    </div>
                </form>
            </div>
            <!--修改基本信息结束-->
        </div>
        <!--right结束-->
    </div>
    <!--详细列表结束-->
</div>
<!--个人中心结束-->

</body>
</html>


<script type="text/javascript">
    $("#city").click(function (e) {
        SelCity(this, e);
    });
</script>
            
